package com.yzt;

public class CatAndDogTest {
    public static void main(String[] args) {
        CatAndDog cat = new CatAndDog("小猫");
        cat.eat();
        cat.sleep();
        CatAndDog dog = new CatAndDog("小狗");
        dog.eat();
        dog.sleep();
    }
}
